﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="SME.Food.Tricon.Web.AdminJS.UserManage.UserList" %>

<%@ Import Namespace="System.Data" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="pagerForm" method="post" action="UserManage/UserList.aspx">
	<input type="hidden" name="SearchMemName" value="<%=SearchMemName %>">
	<input type="hidden" name="SearchUserName" value="<%=SearchUserName %>" />
	<input type="hidden" name="pageNum" value="<%=PageNum %>" />
	<input type="hidden" name="numPerPage" value="<%=NumPerPage %>" />
   </form>
    <div class="pageHeader">
       <form id="UserList" onsubmit="return navTabSearch(this);" action="UserManage/UserList.aspx"
        method="post">
        <div class="searchBar">
           <table class="searchContent">
              <tr>
                 <td>
                    用户名：<input type="text" size="17" name="SearchUserName" value="<%=SearchUserName %>" />
                 </td>
                 <td>
                   员工名称 ：<input type="text" size="17" name="SearchMemName" value="<%=SearchMemName %>" />
                 </td>
                 
                
              </tr>
           </table>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    检索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </form>
    </div>
    <div class="pageContent">
       <div class="panelBar">
        <ul class="toolBar" >
            <%=TooBars %>
        </ul>
       </div>
       <table class="table" nowrapTD="false" width="100%" layouth="141">
        <thead>
            <tr>
                <th>
                    <input type="checkbox" class="checkboxCtrl" group="ids" /> 
                </th>
                 <th align="center" >用户编号
                </th>
                <th align="center" >用户名
                </th>
                <th align="center" >密码
                </th>
                <th align="center">
                    员工姓名
                </th>                
                <th  align="center">
                    权限
                </th>
                <th align="center">
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
             <% if (Table != null)
            {
                foreach (DataRow dr in Table.Rows)
                { %>

                  <tr>
                    <td ><input name="ids" type="checkbox" value="<%=dr["Mem_No"] %>"/></td>
                    <td align='center'><%=dr["User_No"] %></td>
                    <td><%=dr["User_Name"] %></td>
                    <td align='center'><%=dr["User_PassWord"] %></td>
                    <td align='center'><%=dr["Mem_No"] %></td>
                    <td align='center'><%=dr["Mem_Power"].ToString()=="0"?"管理员":"普通用户" %></td>
                    <% if (Mempower == "0")
                       { %>
                         <td align='center'>
					      <a title="删除" target="ajaxTodo" href="UserManage/UserH.aspx?type=delete&User_No=<%=dr["User_No"] %>" class="btnDel">删除</a>
					      <a title="编辑" target="dialog" href="UserManage/UserModify.aspx?type=update&User_No=<%=dr["User_No"] %>" class="btnEdit">编辑</a>
				    </td>  
                      <% 
                       } 
                       else
                       { %>
                       <td align='center'>
					      <a  class="btnDel" title="权限不足！">删除</a>
					      <a  class="btnEdit" title="权限不足！">编辑</a>
				    </td>
                           
                       <%  } %>
                    
                 </tr>
             <% }
        } %>
          </tbody>
    </table>
       <div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select  name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共${totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="200" numPerPage="20" pageNumShown="10" currentPage="1"></div>

	</div>
    </div>
</body>
</html>
